﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="WebService.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Login Page - GPS Travel</title>
    <style type="text/css">
        .style2
        {
            width: 290px;
        }
        .style3
        {
            width: 274px;
        }
        .style4
        {
            width: 274px;
            font-size: x-large;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:100%;" align="center">
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style4">
                    Login</td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <strong>Username</strong></td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <asp:TextBox ID="txt_user" runat="server" Width="216px" Height="30px"></asp:TextBox>
                </td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <asp:RequiredFieldValidator ID="rfv_user" runat="server" 
                        ErrorMessage="Please enter your username" ControlToValidate="txt_user"></asp:RequiredFieldValidator>
                </td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <strong>Password</strong></td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <asp:TextBox ID="txt_password" runat="server" Width="216px" Height="30px" 
                        TextMode="Password"></asp:TextBox>
                </td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <asp:RequiredFieldValidator ID="rfv_password" runat="server" 
                        ErrorMessage="Please enter the password for your username" 
                        ControlToValidate="txt_password"></asp:RequiredFieldValidator>
                </td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    &nbsp;</td>
                <td class="style3">
                    <asp:Label ID="lbl_error" runat="server" style="color: #FF0000"></asp:Label>
                </td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" width="290px">
                    <label ID="lbl_error" style="color:Red"></label></td>
                <td class="style3">
                    <asp:Button ID="btn_login" runat="server" Text="Login" 
                        onclick="btn_login_Click" />
                </td>
                <td width="290px">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
